import {useParams} from 'react-router-dom';

function Test() {
    const {id} = useParams();
    return (
        <div><h2>this is TestPage{id}</h2></div>
    )   
}

export default Test;